package com.lh.portal.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.lh.mapper.UserMapper;
import com.lh.pojo.User;
import com.lh.portal.service.IUserService;

@Service
public class UserServiceImpl implements IUserService{
	@Resource
	UserMapper userMapper;
	@Override
	public User selUserTologin(User user) {
		return userMapper.selUser(user);
	}

	@Override
	public int addUser(User user) {
		return userMapper.addUser(user);
	}

	@Override
	public User selUserByName(String name) {
		return userMapper.selUserByName(name);
	}

	@Override
	public int updUserInfo(User user) {
		return userMapper.updUserInfo(user);
	}

	@Override
	public int updUpass(String upass, String uname) {
		return userMapper.updUpass(upass, uname);
	}

	

}
